home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 53142 / 53142.xpi / content / options.xul < prev    next >
Extensible Markup Language  |  2009-12-07  |  9KB  |  209 lines

  1. <?xml version="1.0"?>
  2. <!-- #######################################################################
  3.     Copyright 2009 Tim Reid
  4.  
  5.     This file is part of the Stack Overflow Reputation Display extension
  6.     for Mozilla Firefox.
  7.  
  8.     Stack Overflow Reputation Display is free software: you can
  9.     redistribute it and/or modify it under the terms of the GNU General
  10.     Public License as published by the Free Software Foundation, either
  11.     version 3 of the License, or (at your option) any later version.
  12.  
  13.     Stack Overflow Reputation Display is distributed in the hope that it
  14.     will be useful, but WITHOUT ANY WARRANTY; without even the implied
  15.     warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  16.     See the GNU General Public License for more details.
  17.  
  18.     You should have received a copy of the GNU General Public
  19.     License along with Stack Overflow Reputation Display. If not,
  20.     see <http://www.gnu.org/licenses/>.
  21. ######################################################################## -->
  22. <!DOCTYPE dialog SYSTEM "chrome://sorepdisplay/locale/sorepdisplay.dtd">
  23. <?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
  24. <?xml-stylesheet href="chrome://sorepdisplay/skin/sorepdisplay.css" type="text/css"?>
  25. <dialog id="sorepdisplayoptions" title="Stack Overflow Reputation Display options"
  26.    xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  27.    buttons="accept,cancel"
  28.    buttonlabelcancel="Cancel"
  29.    buttonlabelaccept="Save"
  30.    ondialogaccept="return sorepoptions.doOK();"
  31.    ondialogcancel="return sorepoptions.doCancel();">
  32.   <script src="sosite.js"/>
  33.   <script src="soaccount.js"/>
  34.   <script src="options.js"/>
  35.     
  36.   <hbox pack="center">
  37.     <image src="chrome://sorepdisplay/skin/sologotrimmed.png"/>
  38.     <description class="titletext">&options.label.title;</description>
  39.   </hbox>
  40.   <spacer height="8px"/>
  41.  
  42.   <hbox width="100" pack="center">
  43.     <vbox>
  44.       <richlistbox id="listbox" flex="1" width="200" rows="2" disabled="false" height="120"/>
  45.       <hbox>
  46.         <button id="add" style="min-width: 2em;" label="Add"/>
  47.         <spacer flex="1"/>
  48.         <button id="delete" style="min-width: 2em;" label="Delete"/>
  49.       </hbox>
  50.     </vbox>
  51.  
  52.     <groupbox>
  53.       <!-- caption label="Stack Overflow"/ -->
  54.       <grid>
  55.         <columns>
  56.           <column flex="1"/>
  57.           <column flex="1"/>
  58.         </columns>
  59.         <rows>
  60.           <row align="center">
  61.             <label value="Site:" control="site"/>
  62.             <menulist id="site"/>
  63.           </row>
  64.           <row align="center">
  65.             <label value="User:"/>
  66.             <hbox align="center">
  67.               <label id="userlabel"/>
  68.               <spacer flex="1"/>
  69.               <button id="clear" style="min-width: 0px;" label="Clear"/>
  70.             </hbox>
  71.           </row>
  72.           <row align="center">
  73.             <label value="&options.label.update;:" control="interval"/>
  74.             <menulist id="interval"/>
  75.           </row>
  76.           <row align="center">
  77.             <label value="&options.label.clickaction;:" control="clickaction"/>
  78.             <menulist id="clickaction"/>
  79.           </row>
  80.           <row align="center">
  81.             <spacer/>
  82.             <checkbox id="dosounds" label="Enable sound effects" checked="true"/>
  83.           </row>
  84.           <!--
  85.           <row align="center">
  86.             <label value="Animation:" control="animation"/>
  87.             <checkbox id="animation" label="Animation"/>
  88.           </row>
  89.           -->
  90.         </rows>
  91.       </grid>
  92.     </groupbox>
  93.   </hbox>
  94.  
  95.   <hbox>
  96.     <spacer flex="1"/>
  97.     <groupbox>
  98.       <caption label="Display properties"/>
  99.       <grid>
  100.         <columns>
  101.           <column flex="1"/>
  102.           <column flex="1"/>
  103.         </columns>
  104.         <rows>
  105.           <row align="center">
  106.             <label value="Reputation score text color:"/>
  107.             <menulist>
  108.               <hbox id="repcolorpicker-hb" class="swatch" style="background-color: #444444;"/>
  109.               <dropmarker/>
  110.               <menupopup id="repcolorpicker-mp" class="colorpicker">
  111.                 <hbox class="swatch" style="background-color: #444444;" align="center" pack="center">
  112.                   <!-- label style="font-weight: bold;" value="default"/ -->
  113.                 </hbox>
  114.                 <hbox>
  115.                   <hbox class="swatch" style="background-color: #fcc;"/>
  116.                   <hbox class="swatch" style="background-color: #cfc;"/>
  117.                   <hbox class="swatch" style="background-color: #ccf;"/>
  118.                   <hbox class="swatch" style="background-color: #cff;"/>
  119.                   <hbox class="swatch" style="background-color: #fcf;"/>
  120.                   <hbox class="swatch" style="background-color: #ffc;"/>
  121.                   <hbox class="swatch" style="background-color: #fff;"/>
  122.                 </hbox>
  123.                 <hbox>
  124.                   <hbox class="swatch" style="background-color: #c66;"/>
  125.                   <hbox class="swatch" style="background-color: #6c6;"/>
  126.                   <hbox class="swatch" style="background-color: #66c;"/>
  127.                   <hbox class="swatch" style="background-color: #6cc;"/>
  128.                   <hbox class="swatch" style="background-color: #c6c;"/>
  129.                   <hbox class="swatch" style="background-color: #cc6;"/>
  130.                   <hbox class="swatch" style="background-color: #ccc;"/>
  131.                 </hbox>
  132.                 <hbox>
  133.                   <hbox class="swatch" style="background-color: #933;"/>
  134.                   <hbox class="swatch" style="background-color: #393;"/>
  135.                   <hbox class="swatch" style="background-color: #339;"/>
  136.                   <hbox class="swatch" style="background-color: #399;"/>
  137.                   <hbox class="swatch" style="background-color: #939;"/>
  138.                   <hbox class="swatch" style="background-color: #993;"/>
  139.                   <hbox class="swatch" style="background-color: #666;"/>
  140.                 </hbox>
  141.                 <hbox>
  142.                   <hbox class="swatch" style="background-color: #600;"/>
  143.                   <hbox class="swatch" style="background-color: #060;"/>
  144.                   <hbox class="swatch" style="background-color: #006;"/>
  145.                   <hbox class="swatch" style="background-color: #066;"/>
  146.                   <hbox class="swatch" style="background-color: #606;"/>
  147.                   <hbox class="swatch" style="background-color: #660;"/>
  148.                   <hbox class="swatch" style="background-color: #000;"/>
  149.                 </hbox>
  150.               </menupopup>
  151.             </menulist>
  152.           </row>
  153.           <row align="center">
  154.             <label value="Badge count text color:"/>
  155.             <menulist>
  156.               <hbox id="badgecolorpicker-hb" class="swatch" style="background-color: #808185;"/>
  157.               <dropmarker/>
  158.               <menupopup id="badgecolorpicker-mp" class="colorpicker">
  159.                 <hbox class="swatch" style="background-color: #808185;" align="center" pack="center">
  160.                   <!-- label style="font-weight: bold;" value="default"/ -->
  161.                 </hbox>
  162.                 <hbox>
  163.                   <hbox class="swatch" style="background-color: #fcc;"/>
  164.                   <hbox class="swatch" style="background-color: #cfc;"/>
  165.                   <hbox class="swatch" style="background-color: #ccf;"/>
  166.                   <hbox class="swatch" style="background-color: #cff;"/>
  167.                   <hbox class="swatch" style="background-color: #fcf;"/>
  168.                   <hbox class="swatch" style="background-color: #ffc;"/>
  169.                   <hbox class="swatch" style="background-color: #fff;"/>
  170.                 </hbox>
  171.                 <hbox>
  172.                   <hbox class="swatch" style="background-color: #c66;"/>
  173.                   <hbox class="swatch" style="background-color: #6c6;"/>
  174.                   <hbox class="swatch" style="background-color: #66c;"/>
  175.                   <hbox class="swatch" style="background-color: #6cc;"/>
  176.                   <hbox class="swatch" style="background-color: #c6c;"/>
  177.                   <hbox class="swatch" style="background-color: #cc6;"/>
  178.                   <hbox class="swatch" style="background-color: #ccc;"/>
  179.                 </hbox>
  180.                 <hbox>
  181.                   <hbox class="swatch" style="background-color: #933;"/>
  182.                   <hbox class="swatch" style="background-color: #393;"/>
  183.                   <hbox class="swatch" style="background-color: #339;"/>
  184.                   <hbox class="swatch" style="background-color: #399;"/>
  185.                   <hbox class="swatch" style="background-color: #939;"/>
  186.                   <hbox class="swatch" style="background-color: #993;"/>
  187.                   <hbox class="swatch" style="background-color: #666;"/>
  188.                 </hbox>
  189.                 <hbox>
  190.                   <hbox class="swatch" style="background-color: #600;"/>
  191.                   <hbox class="swatch" style="background-color: #060;"/>
  192.                   <hbox class="swatch" style="background-color: #006;"/>
  193.                   <hbox class="swatch" style="background-color: #066;"/>
  194.                   <hbox class="swatch" style="background-color: #606;"/>
  195.                   <hbox class="swatch" style="background-color: #660;"/>
  196.                   <hbox class="swatch" style="background-color: #000;"/>
  197.                 </hbox>
  198.               </menupopup>
  199.             </menulist>
  200.           </row>
  201.         </rows>
  202.       </grid>
  203.     </groupbox>
  204.     <spacer flex="1"/>
  205.   </hbox>
  206.  
  207.  
  208. </dialog>
  209.